package inner;

class Outer3{
	int i = 1;
	static int j = 2;
	
	public void test() {
		class Inner3{
			public void test2() {
				System.out.println(i);
				System.out.println(j);
			}
		}
		//创建的对象只能在方法中
		Inner3 i = new Inner3();
		i.test2();
	}
}


public class MethodInnerClassDemo {
	public static void main(String[] args) {
		Outer3 o = new Outer3();
		o.test();
	}
}
